﻿<Thumb x:Class="MiniUML.View.Controls.AnchorPoint"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Width="0" Height="0" x:Name="_this" DragDelta="this_DragDelta">

    <Thumb.Template>
        <ControlTemplate>
            <Canvas>
                <Canvas.Style>
                    <Style>
                        <Setter Property="Control.Opacity" Value="0.1"/>
                        <Style.Triggers>
                            <Trigger Property="Control.IsMouseOver" Value="True">
                                <Trigger.EnterActions>
                                    <BeginStoryboard>
                                        <Storyboard>
                                            <DoubleAnimation To="1" Duration="0:0:0.3" Storyboard.TargetProperty="(Control.Opacity)"/>
                                        </Storyboard>
                                    </BeginStoryboard>
                                </Trigger.EnterActions>
                                <Trigger.ExitActions>
                                    <BeginStoryboard>
                                        <Storyboard>
                                            <DoubleAnimation Duration="0:0:0.3" Storyboard.TargetProperty="(Control.Opacity)"/>
                                        </Storyboard>
                                    </BeginStoryboard>
                                </Trigger.ExitActions>
                            </Trigger>
                        </Style.Triggers>
                    </Style>
                </Canvas.Style>
                <Rectangle Stroke="Black" Fill="White" Canvas.Left="-3.5" Canvas.Top="-3.5" Width="7" Height="7"/>
            </Canvas>
        </ControlTemplate>
    </Thumb.Template>
    
</Thumb>